/**
 * until.format() 格式化输出
 */
const util = require('util');
function Person(){
    this.name = '张三';
    this.age = 18;
    this.showName = function(){
        return this.name;
    }
}

let man = new Person();
console.log(util.format("对象格式化为json：%j",man));
console.log(util.format("对象格式化为json：%o",man));
console.log(util.format("对象格式化为json：%O",man));
console.log(util.format("指定数值%d+%d=%d","50",70,50+70));
console.log(util.format("整数：%i",26.01));
console.log(util.format("小数：%f",26.01));
console.log(util.format("百分数：%d%%","26"));
